<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-4">{:__('显示加盟人数')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[show_join_number]', ['1' => '是', '0' => '否'], $row['show_join_number'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-4">{:__('Sale_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sale_amount" class="form-control" step="0.01" name="row[sale_amount]" type="number" value="{$row.sale_amount|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-4">{:__('Destory_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-destory_amount" class="form-control" step="0.01" name="row[destory_amount]" type="number" value="{$row.destory_amount|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-4">{:__('Parent_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-parent_amount" class="form-control" name="row[parent_amount]" type="number" value="{$row.parent_amount|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-4">{:__('Warehouse_sale')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-warehouse_sale" class="form-control" step="0.01" name="row[warehouse_sale]" type="number" value="{$row.warehouse_sale|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-4">{:__('Warehouse_parent')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-warehouse_parent" class="form-control" step="0.01" name="row[warehouse_parent]" type="number" value="{$row.warehouse_parent|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-4">{:__('Reward_goods_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-reward_goods_id" data-rule="required" data-source="goods/index" data-params='{"custom[status]":"1"}'  class="form-control selectpage" name="row[reward_goods_id]" type="text" value="{$row.reward_goods_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-4">{:__('Reward_spec_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-reward_spec_id" data-rule="required" data-source="goods_spec/index" class="form-control selectpage" name="row[reward_spec_id]" type="text" value="{$row.reward_spec_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-4">{:__('Level_agent_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-level_agent_amount" class="form-control" step="0.01" name="row[level_agent_amount]" type="number" value="{$row.level_agent_amount|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-4">{:__('Level_warehouse_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-level_warehouse_amount" class="form-control" step="0.01" name="row[level_warehouse_amount]" type="number" value="{$row.level_warehouse_amount|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-4">{:__('Promoter_rebate_ratio')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-promoter_rebate_ratio" class="form-control" step="0.01" name="row[promoter_rebate_ratio]" type="number" value="{$row.promoter_rebate_ratio|htmlentities}">
                <div class="input-group-addon">%</div>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-4">{:__('Video_file')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-video_file" class="form-control" size="50" name="row[video_file]" type="text" value="{$row.video_file|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-video_file" class="btn btn-danger plupload" data-input-id="c-video_file" data-multiple="false" data-preview-id="p-video_file"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-video_file" class="btn btn-primary fachoose" data-input-id="c-video_file" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-video_file"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-video_file"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-4">{:__('Video_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-video_image" class="form-control" size="50" name="row[video_image]" type="text" value="{$row.video_image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-video_image" class="btn btn-danger plupload" data-input-id="c-video_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-video_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-video_image" class="btn btn-primary fachoose" data-input-id="c-video_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-video_image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-video_image"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-4">{:__('Agent_content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-agent_content" class="form-control editor" rows="5" name="row[agent_content]" cols="50">{$row.agent_content}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-4">{:__('Warehouse_content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-warehouse_content" class="form-control editor" rows="5" name="row[warehouse_content]" cols="50">{$row.warehouse_content}</textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-4"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
